package net.qial.strategy;

public class BaseObject implements GameObject {
	private double x = 0;
	private double y = 0;
	private double z = 0;
	private double dir = 0;
	private int id;
	private Agent a = null;
	
	public BaseObject() {
		this.id = GameWorld.nextId();
	}
	
	public BaseObject(int id) {
		this.id = id;
	}

	@Override
	public double x() {
		return x;
	}
	
	@Override
	public void setX(double x) {
		this.x = x;
	}

	@Override
	public double y() {
		return y;
	}
	
	@Override
	public void setY(double y) {
		this.y = y;
	}

	@Override
	public double z() {
		return z;
	}
	
	@Override
	public void setZ(double z) {
		this.z = z;
	}

	@Override
	public double getDirection() {
		return dir;
	}
	
	@Override
	public void setDirection(double dir) {
		this.dir = dir;
	}

	@Override
	public int getId() {
		return id;
	}

	@Override
	public Agent getAgent() {
		return a;
	}
	
	public void setAgent(Agent a) {
		this.a = a;
	}
}
